//
//  DCMessageManager.h
//  DCAvchatSDK
//
//  Created by 张涛 on 2020/11/4.
//  Copyright © 2020 zhangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <DCMessageKit/DCMessageKit.h>
#import <DCUtilKit/DCError.h>

NS_ASSUME_NONNULL_BEGIN

@interface DCMessageManager : NSObject

@property(nonatomic,strong) MessageKit *messageKit;

//初始化消息SDK
- (void) initWithInfo:(NSDictionary*)info;
//添加自定义消息监听
- (void) addCustomMessageDelegate:(id<DCCustomMessageDelegate>)delegate;
//移除自定义消息监听
- (void) removeCustomMessageDelegate;
//发送自定义消息
- (void) sendCustomMessage:(NSString*)account content:(NSDictionary*)content callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//创建群组聊天
- (void) createTeamChat:(NSArray*)user callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//激活群组聊天
- (void) activedTeamChat;
//发送群组文本消息
- (void) sendTeamChatTextMessage:(NSString*)teamId content:(nonnull NSString *)content;
//添加群组聊天监听
- (void) addChatMessageDelegate:(id<DCChatMessageDelegate>)delegate;
//移除群组聊天监听
- (void) removeChatMessageDelegate;
//添加业务消息监听
- (void) addBusiDelegate:(id<DCAvchatBusiDelegate>)delegate;
//移除业务消息监听
- (void) removeBusiDelegate;
//添加白板消息监听
- (void) addWhiteBoardDelegate:(id<DCWhiteBoardDelegate>)delegate;
//移除白板消息监听
- (void) removeWhiteBoardDelegate;

@end

NS_ASSUME_NONNULL_END
